
const mongoose = require('./index')
const LessonSchema = mongoose.Schema({
    title: String,
    poster: String,
    url: String,
    desc: String
})
module.exports = mongoose.model('Lesson', LessonSchema, 'lesson')






// Lesson.create([
//     { title: '谈谈你对SPA单页应用的理解，它的优缺点是是什么', poster: 'https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1e1900201d7246f9b6c51c89ff0f47fd~tplv-k3u1fbpfcp-zoom-crop-mark:1512:1512:1512:851.awebp?', url: '' },
//     { title: '谈谈你对vue的理解', poster: 'https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1e1900201d7246f9b6c51c89ff0f47fd~tplv-k3u1fbpfcp-zoom-crop-mark:1512:1512:1512:851.awebp?', url: '' },
//     { title: 'v-if和v-for哪个优先级更高', poster: 'https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1e1900201d7246f9b6c51c89ff0f47fd~tplv-k3u1fbpfcp-zoom-crop-mark:1512:1512:1512:851.awebp?', url: '' },
//     { title: 'computed和watch的区别', poster: 'https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1e1900201d7246f9b6c51c89ff0f47fd~tplv-k3u1fbpfcp-zoom-crop-mark:1512:1512:1512:851.awebp?', url: '' },
//     { title: 'Vue生命周期的理解', poster: 'https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/1e1900201d7246f9b6c51c89ff0f47fd~tplv-k3u1fbpfcp-zoom-crop-mark:1512:1512:1512:851.awebp?', url: '' }
// ])